import { request, getOptions, postOptions } from '../../utils/request';

const actionName = 'role';

export function Create(values) {
    return request(actionName + '/create', postOptions(values));
  }
  export function Update(values) {
    return request(actionName + '/update', postOptions(values));
  }
export function GetPages(values) {
    return request(actionName + '/getpages', postOptions(values));
}
export function GetDetail(values) {
    return request(actionName + '/getdetail', getOptions(values));
}
export function Delete(values) {
    return request(actionName + '/delete', postOptions(values));
}

export function GetCheckModel(values) {
    return request(actionName + '/getcheckmodel', getOptions(values));
}

export function SaveUseMenu(values) {
    return request(actionName + '/menubind', postOptions(values));
}

export function GetCheckByRoleGuid(values) {
    return request(actionName + '/getcheckbyroleguid', getOptions(values));
}